package cn.zhizihua.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 商家类
 */
@Data  //生成getter、setter
@NoArgsConstructor  //无参构造
@AllArgsConstructor //全参构造
@JsonInclude(JsonInclude.Include.NON_NULL) //关联查询结果展示包含非空的字段  （如果字段是空的，转JSON时自动忽略掉了）
@TableName("business")
//implements Serializable实现序列化接口，使类的实例可以转换成字节序列，以便存储和传输  （Redis存储business表数据时使用到）
public class Business implements Serializable {
    //商家编号
    @TableId(value = "businessId",type = IdType.AUTO)
    private Integer businessId;
    //商家账号
    private String businessAccount;
    //商家密码
    private String businessPassword;
    //商家名称
    private String businessName;
    //商家地址
    private String businessAddress;
    //商家介绍
    private String businessExplain;
    //商家主图
    private String businessImg;
    //起送费
    private Double startPrice;
    //配送费
    private Double deliveryPrice;
    //备注
    private String remarks;

}
